﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Store/StoreMastePage.Master" AutoEventWireup="true" CodeBehind="ViewAdjustmentVoucher.aspx.cs" Inherits="logicunivesityinventorystore.Store.ViewAdjustmentVoucher" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" runat="server" 
    contentplaceholderid="ContentPlaceHolder2">
        <h1>View Adjustment Voucher</h1>
          <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
        <br />
         <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
    <asp:Label ID="lbAdjustmentVoucher" runat="server" Text="Adjustment Voucher:"></asp:Label>
        <br />
        <center>
    <asp:GridView ID="gdAdjustment" runat="server" AutoGenerateColumns="False" 
                DataSourceID="ObjectDataSource1" 
                onrowdatabound="gdAdjustment_RowDataBound">
        <Columns>
            <asp:TemplateField HeaderText="VoucherID">
                <ItemTemplate>
                    <asp:LinkButton ID="lbtnVoucherID" runat="server" 
                        Text='<%# Eval("VoucherID") %>'></asp:LinkButton>
                        <cc1:ModalPopupExtender ID="ModalPopupExtender1" BackgroundCssClass="modalBackground"
                runat="server" CancelControlID="btnCancel" OkControlID="btnOkay" TargetControlID="lbtnVoucherID"
                PopupControlID="Panel1" Drag="true" PopupDragHandleControlID="PopupHeader" OnOkScript="NewExpanseOkay();" BehaviorID="EditModalPopup">
                 </cc1:ModalPopupExtender>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="DateIssue" HeaderText="DateIssue" />
            <asp:BoundField DataField="ApproveBy" HeaderText="Approve By" />
            <asp:BoundField DataField="Status" HeaderText="Status" />
        </Columns>
    </asp:GridView>
            <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
                SelectMethod="FindVouvherByClerk" 
                TypeName="BusinessLogicLayer.AdjustmentVoucherFacade">
                <SelectParameters>
                    <asp:SessionParameter Name="clerkID" SessionField="UserName" Type="String" />
                </SelectParameters>
            </asp:ObjectDataSource>
    </center>
     <div class="popup_Buttons" style="display: none">
                
                 <input id="btnOkay" value="Done" type="button" />
                <input id="btnCancel" value="Cancel" type="button" />
            </div>
            <div id="Panel1" style="display: none; width:370px;" class="modalPopup">
                <iframe id="frameeditexpanse" frameborder="0" src="VoucherDetails.aspx" height="270" scrolling="auto" width="370"; 
                    ></iframe>
            </div>
     </ContentTemplate>
             </asp:UpdatePanel>
            </asp:Content>

<asp:Content ID="Content3" runat="server" 
    contentplaceholderid="ContentPlaceHolder3">
  
                </asp:Content>
<asp:Content ID="Content4" runat="server" 
    contentplaceholderid="ContentPlaceHolder4">
     
                </asp:Content>
<asp:Content ID="Content5" runat="server" 
    contentplaceholderid="ContentPlaceHolder5">
    
                </asp:Content>
<asp:Content ID="Content6" runat="server" 
    contentplaceholderid="ContentPlaceHolder1">
  
                </asp:Content>
<asp:Content ID="Content7" runat="server" 
    contentplaceholderid="ContentPlaceHolder7">

                </asp:Content>


